<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/18 0018
 * Time: 15:20
 */
namespace App\Http\Controllers\Functions;

class ArrayFunctionsController
{
    public static  function delArrayItemByValue($arr, $value){
        $keys = array_keys($arr, $value);
        if(!empty($keys)){
            foreach ($keys as $key) {
                unset($arr[$key]);
            }
        }
        return $arr;
    }
}